-- GENERATED SPELL FOR [Levixus] --


function spell0_19847(pUnit, Event) --@Cripple,n/a--
pUnit:FullCastSpellOnTarget(11443,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19847', 18000, 1)
end

function spell1_19847(pUnit, Event) --@Dominate Mind,n/a--
pUnit:FullCastSpellOnTarget(7645,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19847', 12000, 1)
end

function spell2_19847(pUnit, Event) --@Inferno,n/a--
pUnit:FullCastSpellOnTarget(38939,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_19847', 3000, 1)
end

function Sorts_19847(pUnit, Event)
local choix_sorts_19847 = math.random(0, 2)
if choix_sorts_19847 == 0 then
pUnit:RegisterEvent('spell0_19847', 1, 1)
end
if choix_sorts_19847 == 1 then
pUnit:RegisterEvent('spell1_19847', 1, 1)
end
if choix_sorts_19847 == 2 then
pUnit:RegisterEvent('spell2_19847', 1, 1)
end
end

function mob19847_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_19847', math.random(1500, 3000), 1)
end

function mob19847_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19847_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob19847_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(19847, 1, 'mob19847_Action')
RegisterUnitEvent(19847, 2, 'mob19847_Leave')
RegisterUnitEvent(19847, 3, 'mob19847_Kill')
RegisterUnitEvent(19847, 4, 'mob19847_Die')
